package com.vueperson.vueperson.dao;

import com.vueperson.vueperson.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleJPA extends JpaRepository<Role,Integer> {
   List<Role> findByNameOrNameZh(String name,String nameZh);
   List<Role> findByName(String name);
}
